/**
 * 
 */
package moneyman;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Graphics;

/**
 * @author apuranik
 * 
 */
public class HomeScreen extends Grid {

	public HomeScreen() {
		super(5, new int[] { 50, 50 });
	}

	protected void paint(Graphics g) {
		super.paint(g);
		this.drawAccountsTable();
	}

	private void setCommands() {
		this.addCommand(new Command() {});
	}
	
	private void drawAccountsTable() {
		this.setRow(0, new String[] {"Account", "Balance"}, Colours.highlightBackGround);
		this.setRow(1, new String[] {"Cash", "0"}, Colours.normalBackGround);
		this.setRow(2, new String[] {"Saving", "200"}, Colours.highlightBackGround);
		this.setRow(3, new String[] {"Current", "45"}, Colours.normalBackGround);
	}
}
